package com.igeek.config.ch01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Service: 标识服务层(业务层)组件
 * @Service 标注是一个业务逻辑层的类
 */

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public void register(){
        System.out.println("UserService register() ...");
        userDao.insert();
    }

}
